<?php

namespace app\common\validate;

class Topay extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'order_no' => ['require', 'alphaNum', 'min:10'],
        'type'     => ['require', 'alpha', 'in:wechat,alipay'],
        'method'   => ['require', 'alpha', 'in:mp,miniapp,web,wap,app,scan,pos'],
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'index' => ['order_no', 'type', 'method'],
    ];

}
